/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package elaborate.task;

/**
 *
 * @author lendle
 */
public class TaskQueueEvent {

    protected Task task;
    protected TaskQueue taskQueue;
    protected Throwable error;
    protected Object result;

    public TaskQueueEvent() {
    }

    public TaskQueueEvent(Task task, TaskQueue taskQueue, Throwable error, Object result) {
        this.task = task;
        this.taskQueue = taskQueue;
        this.error = error;
        this.result = result;
    }

    
    /**
     * Get the value of result
     *
     * @return the value of result
     */
    public Object getResult() {
        return result;
    }

    /**
     * Set the value of result
     *
     * @param result new value of result
     */
    public void setResult(Object result) {
        this.result = result;
    }


    /**
     * Get the value of error
     *
     * @return the value of error
     */
    public Throwable getError() {
        return error;
    }

    /**
     * Set the value of error
     *
     * @param error new value of error
     */
    public void setError(Throwable error) {
        this.error = error;
    }


    /**
     * Get the value of taskQueue
     *
     * @return the value of taskQueue
     */
    public TaskQueue getTaskQueue() {
        return taskQueue;
    }

    /**
     * Set the value of taskQueue
     *
     * @param taskQueue new value of taskQueue
     */
    public void setTaskQueue(TaskQueue taskQueue) {
        this.taskQueue = taskQueue;
    }


    /**
     * Get the value of task
     *
     * @return the value of task
     */
    public Task getTask() {
        return task;
    }

    /**
     * Set the value of task
     *
     * @param task new value of task
     */
    public void setTask(Task task) {
        this.task = task;
    }

}
